import request from '@/utils/axios';
import appName from "../../appName"

// 查询险种代码维护列表
export function getKindInfoList(params) {
  return request({
    url: appName.PRODUCT + '/uphold/kinduphold/queryList',
    method: 'post',
    data: params
  })
}
export function selectEufdenqList(params) {
  return request({
    url: appName.PRODUCT + '/uphold/kinduphold/queryEufdenq',
    method: 'post',
    data: params
  })
}
//险种代码主表（新增、修改）
export function modifyKind(params) {
  return request({
    url: appName.PRODUCT + '/uphold/kinduphold/modify',
    method: 'post',
    data: params
  })
}
//险种代码附表（新增、修改）
export function modifyEufdenqInfo(params) {
  return request({
    url: appName.PRODUCT + '/uphold/kinduphold/modifyEufdenq',
    method: 'post',
    data: params
  })
}
//险种代码主表（删除）
export function deleteEufopky(params) {
  return request({
    url: appName.PRODUCT + '/uphold/kinduphold/deleteEufopky',
    method: 'post',
    data: params
  })
}
//险种代码附表（删除）
export function deleteEufdenq(params) {
  return request({
    url: appName.PRODUCT + '/uphold/kinduphold/deleteEufdenq',
    method: 'post',
    data: params
  })
}
//险种代码主表导出
export function exportEufopky(params) {
  return request({
    url: appName.PRODUCT + '/uphold/kinduphold/exportEufopky',
    method: 'post',
    data: params,
    responseType: 'blob'
  });
}
//险种代码附表导出
export function exportEufdenq(params) {
  return request({
    url: appName.PRODUCT + '/uphold/kinduphold/exportEufdenq',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

//检查险种是否存在
export function checkCrtable(params) {
  return request({
    url: appName.PRODUCT + '/uphold/kinduphold/checkCrtable',
    method: 'post',
    data: params
  })
}